<?php /*a:2:{s:50:"D:\php\phpEnv\www\www.tp.com\view\user\create.html";i:1703579245;s:50:"D:\php\phpEnv\www\www.tp.com\view\public\base.html";i:1703752521;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!-- 引入 Bootstrap CSS -->
    <link rel="stylesheet" type="text/css" href="http://localhost:8000/static/css/bootstrap.min.css" />
    <link rel="stylesheet" type="text/css" href="http://localhost:8000/static/css/style.css" />

    <!-- 移动设备优先 -->
    <meta name="viewport" content="width=device-width, initial-scale=1,shrink-to-fit=no">
</head>
<body>

<!--导航-->
<nav class="navbar navbar-light bg-light shadow-sm">
    <a href="#"></a>
    <div class="nav-item dropdown mr-5">
        <a class="nav-link dropdown-toggle text-secondary" href="#"
           data-toggle="dropdown">
            <?php echo session('admin'); ?>
        </a>
        <div class="dropdown-menu">
            <a class="dropdown-item" href="#">个人中心</a>
            <a class="dropdown-item" href="<?php echo url('/logout'); ?>">退出管理</a>
        </div>
    </div>
</nav>

<!--核心部分-->
<div class="container pt-5 mt-5">
    <div class="row" >
        <div class="col-3 siadebar">
            <button class="btn btn-secondary"><a href="<?php echo url('/'); ?>">用户管理</a></button>
            <button class="btn btn-secondary"><a href="<?php echo url('/borrow/registration'); ?>">借出登记</a></button>
            <button class="btn btn-secondary"><a href="<?php echo url('/borrow'); ?>">设备借出</a></button>
            <button class="btn btn-secondary"><a href="<?php echo url('/auth'); ?>">权限管理</a></button>
        </div>
        <div class="col-9 main">
            <!--搜索表单-->
            
<!--添加用户UI-->
<form action="<?php echo url('/user'); ?>" method="post">
    <fieldset class="w-75">
        <div class="form-group row">
            <label for="username" class="col-2 col-form-label">用户名</label>
            <div class="col-8">
                <input type="text" id="username" name="username" class="form-control" placeholder="请输入用户名">
            </div>
            <span class="col-2 text-danger col-form-label">*</span>
        </div>
        <div class="form-group row">
            <label for="password" class="col-2 col-form-label">密码</label>
            <div class="col-8">
                <input type="password" id="password" name="password" class="form-control" placeholder="请输入密码">
            </div>
            <span class="col-2 text-danger col-form-label">*</span>
        </div>
        <div class="form-group row">
            <label for="passwordnot" class="col-2 col-form-label">密码确认</label>
            <div class="col-8">
                <input type="password" id="passwordnot" name="passwordnot" class="form-control" placeholder="请输入密码确认">
            </div>
            <span class="col-2 text-danger col-form-label">*</span>
        </div>
        <div class="form-group row">
            <label class="col-2 col-form-label">性别</label>
            <div class="col-8">
                <label for="man" class="col-form-label">
                    <input type="radio" id="man" name="gender" value="男" checked>
                    男
                </label>
                <label for="woman" class="col-form-label">
                    <input type="radio" id="woman" name="gender" value="女">
                    女
                </label>
            </div>
        </div>
        <div class="form-group row">
            <label for="email" class="col-2 col-form-label">电子邮件</label>
            <div class="col-8">
                <input type="text" id="email" name="email" class="form-control" placeholder="请输入电子邮件">
            </div>
            <span class="col-2 text-danger col-form-label">*</span>
        </div>
        <div class="form-group row">
            <label for="hobby" class="col-2 col-form-label">喜好</label>
            <div class="col-8">
                <input type="text" id="hobby" name="hobby" class="form-control" placeholder="请输入喜好">
            </div>
            <span class="col-2 text-danger col-form-label">*</span>
        </div>
        <div class="form-group row">
            <label class="col-2 col-form-label"></label>
            <div class="col-6">
                <label for="agree" class="col-form-label-sm">
                    <input type="checkbox" id="agree" name="agree">
                    我已同意借出协议~
                </label>
            </div>
            <div class="col-2 text-right">
                <a href="<?php echo url('/user'); ?>" class="col-form-label-sm">返回列表</a>
            </div>
        </div>
        <div class="form-group row">
            <label class="col-2 col-form-label"></label>
            <div class="col-8">
                <input type="hidden" value="<?php echo token(); ?>" name="__token__">
                <button class="btn btn-success w-100">添加用户</button>
            </div>
        </div>
    </fieldset>
</form>

        </div>
    </div>
</div>
<!-- 引入 JS 文件 -->
<script type="text/javascript" src="http://localhost:8000/static/js/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="http://localhost:8000/static/js/bootstrap.bundle.min.js"></script>
<script type="text/javascript">
    $('.btn-delete').click(() => {
        let flag = confirm('您真的要删除这条数据吗？');
        return flag ? true : false;
    });
    $('[data-toggle="tooltip"]').tooltip();
</script>
</body>
</html>

